from django.urls import path
from .views import AddSegmentView, SegmentListView, ShipSegmentDetail, BatchDeleteSegments, BatchImportSegmentsView

urlpatterns = [
    path('addSegment', AddSegmentView.as_view(), name='addSegment'),
    path('getSegments', SegmentListView.as_view(), name='getSegments'),
    path('segmentDetail/<int:pk>', ShipSegmentDetail.as_view(), name='segmentDetail'),
    path('deleteSegments', BatchDeleteSegments.as_view(), name='deleteSegments'),
    path('importSegments', BatchImportSegmentsView.as_view(), name='importSegments')
]